/*
Prints time since 1 January 1601 (UTC) in seconds to the console.
*/

#include "stdafx.h"

#include "windows.h"
#include <iostream>


int main(int argc, char* argv[])
{
	FILETIME now;
	GetSystemTimeAsFileTime(&now);

	ULARGE_INTEGER uli;
	uli.LowPart = now.dwLowDateTime; // could use memcpy here!
	uli.HighPart = now.dwHighDateTime;

	double systemTimeIn_s( (double)uli.QuadPart/10000000 );

	printf("%f", systemTimeIn_s);

	return 0;
}

